<?php
require_once VIEW_PATH . '/header.php'
?>
    <div class="banner" >
        <?php
        foreach ($banner as $item) {
            ?>
            <div class="item">
                <img class="image"  data-aos="zoom-in" src="<?php echo $item["images"][0] ?>">
                <div class="container">
                    <div class="title" data-aos="fade-left"><?php echo $item["title"] ?></div>
                    <div class="desc" data-aos="fade-left"><?php echo $item["description"] ?></div>
                    <div class="href" data-aos="fade-left"><a href="<?php echo $item["href"] ?>">了解更多</a></div>
                </div>
            </div>
            <?php
        }
        ?>
    </div>
    <div class="book">
        <div class="container" data-aos="fade-left">
            <div>预约与我们的技术工程师进行 30 分钟的一对一会议，您可以咨询关于产品的任何问题</div>
            <div class="button"><a href="/index/index/page/4">立即预约</a></div>
        </div>
    </div>
    <div class="about">
        <div class="container" data-aos="fade-right">
        <div class="text-align-left"><?php echo $about->description ?></div>
        <div class="button"><a href="/index/index/page/1">关于我们的更多信息</a></div>
        </div>
    </div>
    <div class="product">
        <div class="container">
            <?php
            foreach ($indexProduct as $k => $item) {
                if ($k % 2 == 0) {

                ?>
                <div class="item" data-aos="fade-left">
                    <div class="images"><img src="<?php echo $item->images[0] ?>"></div>
                    <div class="content">
                        <div class="title">
                            <?php echo $item->title ?>
                        </div>
                        <div class="desc">
                            <?php echo $item->description ?>
                        </div>
                        <div class="button"><a href="<?php echo '/productDetail/' . $item->id ?>">了解更多</a></div>
                    </div>
                </div>
                <?php

                }else{
                ?>
                    <div class="item" data-aos="fade-right">
                        <div class="content">
                            <div class="title">
                                <?php echo $item->title ?>
                            </div>
                            <div class="desc">
                                <?php echo $item->description ?>
                            </div>
                            <div class="button"><a href="<?php echo '/productDetail/' . $item->id ?>">了解更多</a></div>
                        </div>
                        <div class="images"><img src="<?php echo $item->images[0] ?>"></div>
                    </div>
                    <?php
                }
            }
            ?>
<!--            <div class="item">-->
<!--                <div class="images">-->
<!--                    <img src="http://47.116.13.67:5555/static/picture/53446_edit3.jpg">-->
<!--                </div>-->
<!--                <div class="content">-->
<!--                    <div class="title">-->
<!--                        fdasfasfasf-->
<!--                    </div>-->
<!--                    <div class="desc">-->
<!--                        fdasfasdfasfda-->
<!--                    </div>-->
<!--                    <div class="button"><a href="">了解更多</a></div>-->
<!--                </div>-->
<!--            </div>-->
        </div>
    </div>
    <div class="ling">
        <div class="container">
            <div class="title">市场焦点</div>
            <?php
            foreach ($ling as $item) {
                ?>
                <div class="item" data-aos="flip-left">
                    <div class="image"><img src="<?php echo $item->images[0] ?>"></div>
                    <div class="href"><a href="<?php echo '/lingDetail/' . $item->id ?>"><?php echo $item->title ?></a></div>
                </div>
                <?php
            }
            ?>

        </div>
    </div>
    <div class="news">
        <div class="container">
            <div class="item" data-aos="zoom-in-up">
                <div class="icon"><img src="/static/images/news.png"></div>
                <div class="title">新闻</div>
                <div class="desc">让您随时了解我们的新动态，并告知您我们最新的行业应用，市场和技术进展。</div>
                <div class="href"><a href="/index/index/news/5">探索我们的新闻</a></div>
            </div>
            <div class="item" data-aos="zoom-in-up">
                <div class="icon"><img src="/static/images/time1.png"></div>
                <div class="title">活动</div>
                <div class="desc">我们全球的会议和展览时间，为您提供我们市场相关活动的动向。</div>
                <div class="href"><a href="/index/index/news/6">探索我们的活动</a></div>
            </div>
            <div class="item" data-aos="zoom-in-up">
                <div class="icon"><img src="/static/images/file1.png"></div>
                <div class="title">下载</div>
                <div class="desc">要了解我们的产品或应用情况，您可以下载我们的任何资料，问卷和产品目录。</div>
                <div class="href"><a href="/index/index/download">探索我们的下载</a></div>
            </div>
        </div>
    </div>
<?php
require_once VIEW_PATH . '/footer.php' ?>
